#include<bits/stdc++.h>
using namespace std;
int main()
{
	freopen("duel.in","r",stdin);
	freopen("duel.out","w",stdout);
    int n,a[100010],b[100010];
    int ans=0,flag;
    cin>>n;
    for(int i=1;i<=n;i++)
    {
		cin>>a[i];
	}
	sort(a+1,a+1+n);
	for(int i=1;i<=n;i++)
	{
		flag=0;
		for(int j=i+1;j<=n;j++)
		{
			if(a[j]>a[i]&&flag==0&&b[j]==0)
			{
				ans++;
				b[j]=1;
				flag=1;
			}
		}
	}
	cout<<n-ans;
    return 0;
}
